﻿using System;
using System.Collections.Generic;
using System.Text;
using XDesigner.ORM;

namespace 刘颜红销售项目管理.Business.DOM
{
    [ORMType("附属文件表")]
    public class Class附属文件
    {
        private int _RecordID = 0;
        [ORMKeyField()]
        [ORMNewValueGenerate(ORMNewValueGenerateStyle.Increase)]
        public virtual int RecordID
        {
            get { return _RecordID; }
            set { _RecordID = value; }
        }

        private string _FileName = null;

        public virtual string FileName
        {
            get { return _FileName; }
            set { _FileName = value; }
        }

        private string _Description = null;

        public virtual string Description
        {
            get { return _Description; }
            set { _Description = value; }
        }

        private DateTime _CreationTime = DateTime.MinValue;

        public virtual DateTime CreationTime
        {
            get { return _CreationTime; }
            set { _CreationTime = value; }
        }

        private DateTime _UpdateTime = DateTime.MinValue;

        public virtual DateTime UpdateTime
        {
            get { return _UpdateTime; }
            set { _UpdateTime = value; }
        }

        private string _ContentType = null;

        public virtual string ContentType
        {
            get { return _ContentType; }
            set { _ContentType = value; }
        }

        private int _ContentLength = 0;

        public virtual int ContentLength
        {
            get
            {
                return _ContentLength; 
            }
            set
            {
                _ContentLength = value; 
            }
        }

        private byte[] _ContentBinary = null;

        [ORMDelay()]
        public virtual byte[] ContentBinary
        {
            get { return _ContentBinary; }
            set { _ContentBinary = value; }
        }
    }

}
